package gandalf.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Temporal;

@Entity
public class Nakup extends Cart implements Serializable {
    private static final long serialVersionUID = 1L;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date datumPlacila;
    private String nacinPlacila;
    private Double Cena;
    private String Opis;

    public String getOpis() {
        return Opis;
    }

    public Double getCena() {
        return Cena;
    }

    public void setCena(Double Cena) {
        this.Cena = Cena;
    }

    public void setOpis(String Opis) {
        this.Opis = Opis;
    }

    /**
     * Get the value of nacinPlacila
     *
     * @return the value of nacinPlacila
     */
    public String getNacinPlacila() {
        return nacinPlacila;
    }

    /**
     * Set the value of nacinPlacila
     *
     * @param nacinPlacila new value of nacinPlacila
     */
    public void setNacinPlacila(String nacinPlacila) {
        this.nacinPlacila = nacinPlacila;
    }


    /**
     * Get the value of datumPlacila
     *
     * @return the value of datumPlacila
     */
    public Date getDatumPlacila() {
        return datumPlacila;
    }

    /**
     * Set the value of datumPlacila
     *
     * @param datumPlacila new value of datumPlacila
     */
    public void setDatumPlacila(Date datumPlacila) {
        this.datumPlacila = datumPlacila;
    }


    @Override
    public String toString() {
        return "gandalf.model.Nakup[id=" + super.getId() + "]";
    }

}
